home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / amiexpress / source / ae / code / ax3.00 / flagpause.c < prev    next >
Encoding:
C/C++ Source or Header  |  1980-01-03  |  1.1 KB  |  47 lines

  1. #include "bbs.h"
  2.  
  3. int FlagPause(int count)
  4. {
  5.  int MoreStat;
  6.  char str[200];
  7.  
  8.  if(gnsflag!=1)    LineCount=LineCount+count;
  9.  
  10.  if(gnsflag!=1&&(LineCount>=(User.LineLength?User.LineLength:22))) {
  11.      LineCount=0;
  12.         FOREVER    {
  13.          AEPutStr("(Pause)...(f)lags, More(Y/n/ns)? ");
  14.             MoreStat=LineInput("",str,190,KEYBOARD_TIMEOUT);
  15.             if(MoreStat<0)            return(MoreStat);
  16.  
  17.          if(str[0]=='\0'||str[0]=='y'||str[0]=='Y') break;
  18.  
  19.          if(Whence_The_Logon>=REMOTE_LOGON)    {
  20.              MoreStat=CheckCarrier();
  21.                 if(MoreStat==FALSE)
  22.                  return(NO_CARRIER);
  23.             }
  24.             if((str[0]=='N')||(str[0]=='n')) {
  25.              if((str[1]=='S')||(str[1]=='s')) {
  26.                  gnsflag=1;
  27.                     break;
  28.                 } else {
  29.                  AEPutStr("\r\n");
  30.                     return(FAILURE);
  31.                 }
  32.             }
  33.             if((str[0]=='F')||(str[0]=='f')) {
  34.              if(strlen(str)>2)                MoreStat=FlagFiles(str+2);
  35.              else                            MoreStat=FlagFiles(NULL);
  36.              if(MoreStat<FAILURE)            return(MoreStat);
  37.                 //if(AnsiColor)
  38.                      AEPutStr("A");
  39.             }
  40.         }
  41.      //if(AnsiColor)
  42.         AEPutStr("A");
  43.     }
  44. return(SUCCESS);
  45. }
  46.  
  47.